//
//  NewReportViewController.h
//  Project6
//
//  Created by ToanDK on 11/14/12.
//  Copyright (c) 2012 DungNP. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface NewReportViewController : UIViewController<UITableViewDelegate,UITableViewDataSource,UITextFieldDelegate,UIPickerViewDataSource>
{
    
    IBOutlet UITableView *tblNewReportTable;
    NSMutableArray * headerSections;
    NSMutableArray * contentRows;
    NSMutableArray * headerSectionIndexes;
    IBOutlet UIButton * btnStart;
    IBOutlet UIView * view1;
    IBOutlet UIPickerView * picker; // using for access
    IBOutlet UIPickerView * picker2; // using for side
    
    IBOutlet UILabel * lblFARM_ID;
    IBOutlet UILabel * lblWTG_ID;
    IBOutlet UILabel * lblVIS_ID;
    
    UITextField * tfName;        // contain data from name field of table cell
    UITextField * tfGenerated;   // contain data of Generated field of table cell
    UITextField * tfPhotoId; // photo id field
    
    NSString * currAccessMethod; // selected AccessMethod
    NSString * currSide;         // selected Side
    UISegmentedControl *segmentedControl; // blade values
    
    int currBladeSelectedIndex;
    NSString * currExTechName;
    NSString * currGenerated;
    NSString * currPhotoId;
    
    int mode; // Access methods or sides
    NSMutableArray * AccessMethodItems;
    NSMutableArray * SideItems;
    
    UISwitch * externalCamera; // to get when use or not external camera
  
}
@property (nonatomic,strong) NSString * FARM_ID;
@property (nonatomic,strong) NSString * WTG_ID;
@property (nonatomic,strong) NSString * VIS_ID;
@property (nonatomic,strong) NSString * DIS_LENGTH;

-(IBAction)btnStart_Click:(id)sender;

@end
